import request from '@/utils/request'

// 查询智能排水列表
export function listWaterTunnel(query) {
  return request({
    url: '/app/waterTunnel/list',
    method: 'get',
    params: query
  })
}

// 查询智能排水详细
export function getWaterTunnel(id) {
  return request({
    url: '/app/waterTunnel/' + id,
    method: 'get'
  })
}

// 新增智能排水
export function addWaterTunnel(data) {
  return request({
    url: '/app/waterTunnel',
    method: 'post',
    data: data
  })
}

// 修改智能排水
export function updateWaterTunnel(data) {
  return request({
    url: '/app/waterTunnel',
    method: 'put',
    data: data
  })
}

// 删除智能排水
export function delWaterTunnel(id) {
  return request({
    url: '/app/waterTunnel/' + id,
    method: 'delete'
  })
}
